
values = [ 1,4,2,6,3,7 ]

newval = [2*x if x%2==0 else x for x in values]

print(newval)  # 输出：[1, 8, 4, 12, 3, 7]
# what does this list comprehension produce and why?
# try to predict the result before printing it